package interview.fushitong;

public class ChuangZhi {

	float ptValue;

	public void changeInt(int value) {
		value = 55;
	}

	public void changeStr(String value) {
		value = new String("different");
	}

	public void changeObjValue(ChuangZhi ref) {
		ref.ptValue = 99f;
	}

	public static void main(String args[]) {
		String str;
		int val;
		char c1='a';
		ChuangZhi pt = new ChuangZhi();
		val = 11;
		pt.changeInt(val);
		System.out.println("Int value is: " + val);
		pt.changeInt(c1);
		System.out.println("Character value is: " + c1);
		str = new String("Hello");
		pt.changeStr(str);
		System.out.println("Str value is: " + str);
		pt.ptValue = 101f;
		pt.changeObjValue(pt);
		System.out.println("Current ptValue is: " + pt.ptValue);
		
	}
}
